﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Five
{
    class StringUtil
    {
        public static void Text()
        {
            Console.WriteLine("请输入一段字符:");
            string a = Console.ReadLine();
            bool index = false;
            if (a == null || a == String.Empty || a == "" || string.IsNullOrWhiteSpace(a))
            {
                index = true;
            }            
            Console.WriteLine("index");
        }
    }
    class ArrayUtil
    {
        public static void Text()
        {
            bool index = false;
            string[] b = new string[1];
            for (int i = 0; i < b.Length; i++)
            {
                Console.WriteLine("请为数组添加值:");
                b[i] = Console.ReadLine();
            }
            for (int i = 0; i < b.Length; i++)
            {
                if (b[i] == "" || b[i] == null || string.IsNullOrWhiteSpace(b[i]))
                {
                    index = true;
                }
                Console.WriteLine("index");
            }
        }
    }

}
